package index.oop;

public class Student2 {
    //javaBean         class
    //构造了一个学生类  模版
    //不需要写 main    方法
    //构造类
    //属性
    String name;
    String gender;
    int age;
    double height;

    //特征 方法
    public void study(){
        System.out.println("i having studying java");
    }
    public void eat(){
        System.out.println("eat dinner");
    }
    public void playGame(){
        System.out.println("play csgo");
    }
    public void sleeping(){
        System.out.println("should sleep");
    }
}
